:root {
  /* Layout */
  --nav-h: 80px;

  /* Modern Color Palette */
  --primary: #0f172a;
  --primary-light: #1e293b;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --success: #10b981;
  --dark: #0f172a;
  --light: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray: #e5e7eb;

  /* Modern Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);

  /* Modern Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Transitions & Radius */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

img,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

/* Time Page Section */
.modern-countdown-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 5vw, 38px);
}
.modern-countdown-item {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s;
}
.modern-countdown-item:hover {
  background: rgba(255, 255, 255, 0.22);
}
.modern-countdown-icon {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px #00f2fe88);
}
.modern-countdown-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px #00f2fe55;
}
.modern-countdown-label {
  font-size: 1.1rem;
  color: #fff;
  opacity: 0.85;
  font-weight: 600;
  letter-spacing: 1px;
}
@media (max-width: 700px) {
  .modern-countdown-bar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .modern-countdown-item {
    min-width: 90px;
    padding: 12px 10px;
  }
  .modern-countdown-num {
    font-size: 2rem;
  }
}

.more-info {
  margin: 25px;
  font-size: 1.2rem;
  color: #011830;
}

#ended {
  display: none;
  margin-top: 10px;
  font-weight: 700;
}

.img-logo {
  width: 70px;
  height: auto;
}
.text-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

/* ====== NAVBAR ====== */
.navbar {
  position: fixed !important;
  width: 100%;
  height: var(--nav-h);
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background-color: rgba(35, 155, 182, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

/* Logo */
.navbar img {
  position: relative;
  top: 5px;
  right: 210px;
  width: 60px;
  height: auto;
}
@media (max-width: 992px)  {
  .navbar img {
    display: block;
    position: absolute;
    top: 15px;
    right: 210px;
    margin-inline-end: 0.75rem;
  }
}

/* Brand text */
.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff !important;
  margin-inline-end: 4.5rem;
}

/* Links */
.navbar-nav .nav-link {
  font-weight: 500;
  color: #f0f4f8 !important;
  transition: var(--transition);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
}

/* Navbar تغيير لون عند التمرير */
nav.navbar.scrolled {
  background: #22222263 !important;
  box-shadow: 0 2px 16px #0002;
  transition: background 0.3s, box-shadow 0.3s;
}

nav.navbar.scrolled .navbar-collapse,
nav.navbar.scrolled .dropdown-item {
  color: #000 !important;
}

nav.navbar.scrolled .nav-link {
  color: #fff !important;
}

/* زر الانضمام — متجاوب بدلاً من التموضع المطلق */
li.join-us a {
  position: static;
  background: var(--gradient-accent);
  color: #fff !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  margin-inline-start: 1rem;
}
li.join-us a:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 992px) {
  .navbar-nav {
    align-items: center;
  }
  .join-us {
    margin-inline-start: auto;
  }
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.95) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  right: 0;
  left: auto;
  text-align: center !important;
  padding: 0.5rem;
}
.dropdown-item {
  font-weight: 500;
  text-align: center;
  color: var(--gray-700);
  transition: var(--transition);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  margin: 0.25rem 0;
}
.dropdown-item:hover {
  background: var(--gradient-accent) !important;
  color: #fff !important;
  transform: translateX(5px);
}
.navbar-nav .nav-link:hover,
.dropdown-item:hover {
  color: #f9b43a !important;
}

/* Submenu RTL support */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  right: 100%;
  left: auto;
  margin-top: -0.125rem;
  margin-right: 0.25rem;
  border-radius: 0.5rem;
}
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}
.dropdown-menu.show {
  display: block;
}
.dropdown-submenu > a::after {
  font-size: 0.8rem;
  margin-right: 0.5rem;
  opacity: 0.7;
}

/* Toggler */
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* ---------- Header & Hero ---------- */
header {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  height: auto;
  overflow: hidden;
  display: grid;
  place-items: center;
}
header video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Hero layered background */
.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.hero-mesh-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 219, 255, 0.3) 0%,
      transparent 50%
    );
  animation: meshMove 20s ease-in-out infinite;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.15)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
}
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(30, 41, 59, 0.65) 50%,
    rgba(15, 23, 42, 0.8) 100%
  );
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

/* Hero container/content centered and full */
.hero-container {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  z-index: 2;
}
.hero-content {
  width: min(1150px, 100%);
  margin-inline: auto;
  text-align: center;
}

/* Title area */
.hero-title {
  margin-bottom: 1.5rem;
  animation: slideInUp 1s ease-out 0.7s both;
}

.hero-title-container {
  position: relative;
  margin: 0 0 3rem 0;
}
.title-background-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  z-index: -1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.title-effects {
  position: relative;
  margin-top: 1.5rem;
}
.title-glow {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 100px;
  background: radial-gradient(
    ellipse,
    rgba(79, 172, 254, 0.3) 0%,
    transparent 70%
  );
  filter: blur(20px);
  animation: glowPulse 3s ease-in-out infinite;
}
.title-particles {
  position: absolute;
  top: -1rem;
  left: 0;
  width: 100%;
  height: 2rem;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 20"><circle cx="20" cy="10" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="60" cy="5" r="0.5" fill="rgba(79,172,254,0.5)"/><circle cx="120" cy="15" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="180" cy="8" r="0.8" fill="rgba(0,242,254,0.4)"/></svg>');
  animation: particleFloat 8s linear infinite;
}
.title-main {
  display: block;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #4facfe 50%, #00f2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.title-letter {
  display: inline-block;
  animation: letterFloat 3s ease-in-out infinite;
}
.title-letter:nth-child(1) {
  animation-delay: 0s;
}
.title-letter:nth-child(2) {
  animation-delay: 0.1s;
}
.title-letter:nth-child(3) {
  animation-delay: 0.2s;
}
.title-letter:nth-child(4) {
  animation-delay: 0.3s;
}
.title-letter:nth-child(5) {
  animation-delay: 0.4s;
}

.title-underline {
  width: 200px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 1rem auto;
  border-radius: var(--radius-full);
  animation: expandWidth 2s ease-out 1s both;
}
.title-subtitle {
  display: block;
  font-size: clamp(1.05rem, 2.5vw, 1.6rem);
  font-weight: 400;
  margin-top: 1rem;
  line-height: 1.4;
}
.subtitle-word {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0.5rem;
  animation: wordFloat 3s ease-in-out infinite;
}
.subtitle-word:nth-child(1) {
  animation-delay: 0s;
}
.subtitle-word:nth-child(2) {
  animation-delay: 0.5s;
}
.subtitle-word:nth-child(3) {
  animation-delay: 1s;
}
.subtitle-highlight {
  display: inline-block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  margin: 0 0.5rem;
  animation: highlight 2s ease-in-out infinite;
}

/* Description */
.hero-description-container {
  margin-bottom: 2.5rem;
}
.hero-description {
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 80ch;
  margin: 0 auto 2rem;
  line-height: 1.8;
  text-align: justify;
  text-align-last: center;
}

/* Features */
.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  transition: var(--transition);
  cursor: pointer;
}
.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(79, 172, 254, 0.3);
}
.feature-icon {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 1.5rem;
}
.icon-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  filter: blur(10px);
  opacity: 0.5;
  animation: iconGlow 2s ease-in-out infinite;
}
.feature-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.feature-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: slideInUp 1s ease-out 1.1s both;
}
.btn-enhanced {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}
.btn-primary,
.btn-secondary,
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.9rem, 2.5vw, 1.25rem) clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-width: clamp(160px, 22vw, 220px);
}
.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover .btn-glow {
  transform: translateX(100%);
}
.btn-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}
.btn-secondary:hover .btn-ripple {
  width: 300px;
  height: 300px;
}
.btn-tertiary {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  color: #fff;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-2xl);
  color: #fff;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: #fff;
}

/* Stats */
.hero-stats {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  animation: slideInUp 1s ease-out 1.3s both;
}
.stat-item {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}
.stat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.95rem;
  opacity: 0.8;
  font-weight: 500;
}
.stat-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: progressFill 2s ease-out 2s both;
}

/* ---------- Scroll Indicator (optional) ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.scroll-mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  margin: 0 auto 1rem;
  position: relative;
}
.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}
.scroll-arrows {
  display: flex;
  flex-direction: column;
  gap: -5px;
  margin-top: 0.5rem;
}
.scroll-arrows i {
  animation: bounceArrow 2s infinite;
}
.scroll-arrows i:nth-child(2) {
  animation-delay: 0.2s;
}
.scroll-arrows i:nth-child(3) {
  animation-delay: 0.4s;
}

/* ---------- Floating Elements (optional) ---------- */
.floating-elements {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: floatShape 6s ease-in-out infinite;
}
.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}
.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}
.shape-4 {
  width: 40px;
  height: 40px;
  top: 30%;
  right: 30%;
  animation-delay: 1s;
}

/* ---------- Section: Generic Container ---------- */
.container_1 {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}
.section-header h2 {
  font-size: 3rem;
  background: #00f2fe;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.section-header p {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.7;
}
.section-header::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 6px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

/* ---------- Office Gallery ---------- */
.office-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
  height: 400px;
  background: var(--light);
  border: 1px solid var(--gray-200);
}
.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: var(--secondary);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  will-change: transform;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.7),
    transparent
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 2rem 1.5rem 1.5rem;
  opacity: 0;
  transition: var(--transition-slow);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}
.gallery-caption h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* ---------- Team Members ---------- */
.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 5rem;
}
.member-card {
  background: var(--light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
  position: relative;
  border: 1px solid var(--gray-200);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.member-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-2xl);
  border-color: var(--secondary);
}
.member-image {
  height: 25rem;
  overflow: hidden;
  position: relative;
}
.member-image img {
  width: 100%;
  height: 125%;
  object-fit: cover;
  transition: var(--transition);
}
.member-card:hover .member-image img {
  transform: scale(1.05);
}

.member-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}
.member-card:hover .member-social {
  bottom: 0;
}
.member-social a {
  color: var(--primary);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
  transition: var(--transition);
}
.member-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-5px);
}

.member-info {
  padding: 1.5rem;
  text-align: center;
}
.member-info h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.member-info p {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.member-bio {
  color: #666;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ---------- Work Process ---------- */
.work-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}
.process-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transition: var(--transition);
}
.process-card:hover::before {
  width: 100%;
  opacity: 0.05;
}
.process-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2d7d8f, #239cb6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}
.process-content h3 {
  font-size: 1.4rem;
  color: #2d7d8f;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.process-content p {
  color: #666;
  position: relative;
  z-index: 2;
}

/* ---------- Video Section ---------- */
.video-section {
  margin-bottom: 5rem;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ---------- Footer ---------- */
footer {
  background-color: #239cb6;
  color: #fff;
  text-align: center;
  letter-spacing: 3px;
  font-size: 20px;
  padding: 10px;
  position: relative;
  bottom: 0;
  right: 0;
}

/* ---------- Contact Section ---------- */
section {
  padding: 60px 0;
}
.contact-info {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}
.contact-info-icon {
  margin-bottom: 15px;
}
.contact-info-item {
  background: #1d505c;
  padding: 30px 0;
}
.contact-page-sec .contact-page-form h2 {
  color: #071c34;
  text-transform: capitalize;
  font-size: 22px;
  font-weight: 700;
}
.contact-page-form .col-md-6.col-sm-6.col-xs-12 {
  padding-left: 0;
}
.contact-page-form.contact-form input {
  margin-bottom: 5px;
}
.contact-page-form.contact-form textarea {
  height: 110px;
}
.contact-page-form.contact-form input[type="submit"] {
  background: #071c34;
  width: 150px;
  border-color: #071c34;
}
.contact-info-icon i {
  font-size: 48px;
  color: #fda40b;
}
.contact-info-text p {
  margin-bottom: 0;
}
.contact-info-text h2 {
  color: #fff;
  font-size: 22px;
  text-transform: capitalize;
  font-weight: 600;
  margin-bottom: 10px;
}
.contact-info-text span {
  color: #999;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  width: 100%;
}
.contact-page-form input {
  background: #f9f9f9;
  border: 1px solid #f9f9f9;
  margin-bottom: 20px;
  padding: 12px 16px;
  width: 100%;
  border-radius: 4px;
}
.contact-page-form .message-input {
  display: inline-block;
  width: 100%;
  padding-left: 0;
}
.single-input-field textarea {
  background: #f9f9f9;
  border: 1px solid #f9f9f9;
  width: 100%;
  height: 120px;
  padding: 12px 16px;
  border-radius: 4px;
}
.single-input-fieldsbtn input[type="submit"] {
  background: #fda40b;
  color: #fff;
  display: inline-block;
  font-weight: 600;
  padding: 10px 0;
  text-transform: capitalize;
  width: 150px;
  margin-top: 20px;
  font-size: 16px;
}
.single-input-fieldsbtn input[type="submit"]:hover {
  background: #071c34;
  transition: all 0.4s ease-in-out;
  border-color: #071c34;
}
.single-input-field h4 {
  color: #464646;
  text-transform: capitalize;
  font-size: 14px;
}
.contact-page-form {
  display: inline-block;
  width: 100%;
  margin-top: 30px;
}
.contact-page-form form {
  padding: 20px 15px 0;
}

/* ---------- Accessibility & Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .hero-particles,
  .title-glow,
  .badge-glow,
  .icon-glow {
    display: none !important;
  }
}

/* ---------- Responsive Enhancements ---------- */
@media (max-width: 992px) {
  :root {
    --nav-h: 72px;
  }
  nav.navbar {
    height: var(--nav-h);
    padding: 0 3rem;
  }
  .img-logo {
    position: relative;
    top: 5px;
    right: 65px;
    width: 35px;
    height: 35px;
  }
  .navbar-brand {
    font-size: 1.25rem;
  }
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    background-color: #878787b4;
    position: absolute;
    left: 0;
    width: 100%;
  }
  .navbar-nav .nav-link {
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    margin: 0.25rem 0;
  }
  .nav-item {
    padding-left: 0;
    margin-right: 0;
  }
  .join-us {
    margin-inline-start: 0 !important;
    width: 100%;
  }
  li.join-us a {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0.5rem 0 0;
  }
  .dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    text-align: center;
    box-shadow: none;
    border: 0;
    background: rgba(255, 255, 255, 0.98) !important;
  }
  .dropdown-submenu > .dropdown-menu {
    right: auto;
  }
  header {
    min-height: calc(100svh - var(--nav-h));
  }
  .hero-container {
    padding: 1.25rem;
    align-items: start;
  }
  .hero-title-container {
    margin-bottom: 2rem;
  }
  .title-background-text {
    font-size: clamp(4rem, 22vw, 8rem);
  }
  .title-main {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  .title-subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  }
  .hero-description {
    max-width: 92vw;
    line-height: 1.9;
    text-align: start;
    text-align-last: auto;
  }
  .hero-features {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .btn-primary,
  .btn-secondary,
  .btn-tertiary {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .container_1 {
    width: 94%;
    padding: 1.25rem 0;
  }
  .section-header h2 {
    font-size: clamp(1.6rem, 5.5vw, 2.25rem);
    line-height: 1.25;
  }
  .section-header p {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    padding-inline: 0.25rem;
  }
  .office-gallery {
    gap: 1rem;
  }
  .gallery-item {
    height: 300px;
  }
  .gallery-caption {
    padding: 1.25rem 1rem 1rem;
  }
  .team-members {
    gap: 1.25rem;
  }
  .member-image {
    height: 260px;
  }
  .work-process {
    gap: 1rem;
  }
  .process-card {
    padding: 1.25rem;
  }
  .process-number {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
  }
  .video-section {
    margin-bottom: 3rem;
    border-radius: 10px;
  }
  .video-overlay {
    padding: 1rem;
  }
  .video-overlay h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }
  .video-overlay p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-bottom: 1rem;
  }
  .play-button {
    width: 64px;
    height: 64px;
  }
  .play-button i {
    font-size: 1.5rem;
  }
}

/* Responsive for mobile screens */
@media (max-width: 600px) {
  body {
    padding-top: 90px;
    font-size: 1rem;
  }
  nav.navbar {
    height: 90px;
  }
  .member-image img {
    width: 100%;
    height: 170%;
  }
  .modern-countdown-bar {
    flex-direction: row;
    gap: 10px;
    align-items: stretch;
  }
  .modern-countdown-item {
    min-width: 80px;
    padding: 10px 8px;
  }
  .modern-countdown-num {
    font-size: 1.5rem;
  }
  .modern-countdown-label {
    font-size: 0.9rem;
  }
}

/* تقليل الظلال الثقيلة جدًا على الشاشات الصغيرة */
@media (max-width: 576px) {
  .gallery-item,
  .member-card {
    box-shadow: var(--shadow);
  }
}

/* تصليحات RTL بسيطة للموبايل */
@media (max-width: 576px) {
  .navbar-nav .nav-link::after {
    display: none;
  }
  .dropdown-item:hover {
    transform: none;
  }
}

/* خرائط جوجل مرنة */
.contact-page-map iframe {
  display: block;
  width: 100% !important;
  height: clamp(320px, 60vw, 450px);
  border: 0;
  border-radius: 8px;
}

/* ضمان عدم خروج أي عنصر عرضيًا */
body,
#home,
header,
.hero-background,
.hero-gradient-overlay,
.hero-canvas {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- Animations ---------- */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}
@keyframes letterFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 200px;
  }
}
@keyframes meshMove {
  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  50% {
    background-position: 100% 100%, 0% 0%, 25% 75%;
  }
}
@keyframes sparkle {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes borderMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes iconFloat {
  0% {
    transform: translateY(0) rotate(0);
  }
  100% {
    transform: translateY(-5px) rotate(5deg);
  }
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.1);
  }
}
@keyframes particleFloat {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes wordFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes highlight {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}
@keyframes iconGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
@keyframes progressFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes scrollWheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
  }
}
@keyframes bounceArrow {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}
@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0) rotate(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.1;
  }
}


/* إصلاح مشاكل القائمة في الشاشات الصغيرة جدا مثل */
@media (max-width: 420px) {
  :root {
    --nav-h: 70px;
  }

  .navbar {
    height: var(--nav-h);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* الشعار */
  .navbar img {
    position: static !important;
    width: 48px;
    height: auto;
    margin-right: 0.5rem;
  }

  /* النص بجانب الشعار */
  .navbar-brand {
    font-size: 1rem;
    margin: 0;
    color: #fff !important;
  }

}
